package work.basic;

import java.util.Random;
import java.util.Scanner;

public class JumpControlStete {
    public static void main(String[] args) {
//        int b = new Random().nextInt(100);
//        System.out.println(b);
        while (true){
            int b = new Random().nextInt(100);
            System.out.println(b);
            System.out.println("请输入数据：");
        int a = new Scanner(System.in).nextInt();

        System.out.println("您输入的是："+a);

        if (a==b){
            System.out.println("终于输入对了！");
            break; //跳出循环
            //continue;
        }
            System.out.println("继续");
        }
    }
}
